package com.jdym.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdym.back.entity.History;
import com.jdym.back.mapper.HistoryMapper;
import com.jdym.back.service.HistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 历史贷款表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */


@Service
public class HistoryServiceImpl extends ServiceImpl<HistoryMapper, History> implements HistoryService {
   @Autowired
   HistoryMapper historyMapper;

    @Override
    public List<History> selectHistory(int cobankId) {
        return historyMapper.selectHistory(cobankId);
    }

    @Override
    public History selectHistoryId(int id) {
        return historyMapper.selectHistoryId(id);
    }

    @Override
    public History selectByKey(String key) {
        return historyMapper.selectByKey(key);
    }


}
